package im.route.api.header;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;

import java.io.Serializable;

@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
public class PAOCResponseHeader implements Serializable {
    private static final long serialVersionUID = -8784699162620235606L;

    private String apiId;
    private String transNo;
    private String reqChannelNo;
    private String rspChannelNo;
    private String sign;
    private String infoContent;
    private String retCode;
    private String retMsg;

    @JsonIgnore
    private String infoContentDecrypted;

    public PAOCResponseHeader() {
    }

    public PAOCResponseHeader(String apiId, String transNo, String reqChannelNo, String rspChannelNo) {
        this.apiId = apiId;
        this.transNo = transNo;
        this.reqChannelNo = reqChannelNo;
        this.rspChannelNo = rspChannelNo;
    }

    public String getApiId() {
        return apiId;
    }

    public void setApiId(String apiId) {
        this.apiId = apiId;
    }

    public String getTransNo() {
        return transNo;
    }

    public void setTransNo(String transNo) {
        this.transNo = transNo;
    }

    public String getReqChannelNo() {
        return reqChannelNo;
    }

    public void setReqChannelNo(String reqChannelNo) {
        this.reqChannelNo = reqChannelNo;
    }

    public String getRspChannelNo() {
        return rspChannelNo;
    }

    public void setRspChannelNo(String rspChannelNo) {
        this.rspChannelNo = rspChannelNo;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public String getInfoContent() {
        return infoContent;
    }

    public void setInfoContent(String infoContent) {
        this.infoContent = infoContent;
    }

    public String getRetCode() {
        return retCode;
    }

    public void setRetCode(String retCode) {
        this.retCode = retCode;
    }

    public String getRetMsg() {
        return retMsg;
    }

    public void setRetMsg(String retMsg) {
        this.retMsg = retMsg;
    }

    public String getInfoContentDecrypted() {
        return infoContentDecrypted;
    }

    public void setInfoContentDecrypted(String infoContentDecrypted) {
        this.infoContentDecrypted = infoContentDecrypted;
    }

    @Override
    public String toString() {
        return "PAOCResponseHeader{" +
                "apiId='" + apiId + '\'' +
                ", transNo='" + transNo + '\'' +
                ", reqChannelNo='" + reqChannelNo + '\'' +
                ", rspChannelNo='" + rspChannelNo + '\'' +
                ", sign='" + sign + '\'' +
                ", infoContent='" + infoContent + '\'' +
                ", retCode='" + retCode + '\'' +
                ", retMsg='" + retMsg + '\'' +
                ", infoContentDecrypted='" + infoContentDecrypted + '\'' +
                '}';
    }
}
